Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debugLog and defaultExceptionResponse #34

Merged
merged 5 commits into from
Jun 15, 2023
Merged

Conversation

maksbotan
Copy link
Contributor

No description provided.

@maksbotan maksbotan requested a review from Gmihtt June 9, 2023 12:45
@maksbotan maksbotan force-pushed the maksbotan/debug-logs branch 5 times, most recently from ac94423 to 6f22b24 Compare June 14, 2023 09:20

module Web.Template.Log
( bcdlog
, bcdlog400
, debugLog
, debugLogHandler

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

пустое место!!!!!!!!!!

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

или это специально так?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ага, типа на группы делю

, alStatus :: !Int
, alURL :: !Text
, alUserId :: !(Maybe Text)
, alResponseBody :: Maybe TL.Text
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а зачем тут специально ленивый текст?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Потому что из респонса возвращается ленивый

startZoned <- utcToLocalZonedTime $ posixSecondsToUTCTime alStart
TIO.putStrLn $
formatTimeIso startZoned
<> " INFO "
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

если это debug log
может лучше тут не INFO а DEBUG ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug в смысле форматирования, а не уровня)

, debugLogHandler
, debugLog
, formatTimeIso

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Пустота холодна..."

@maksbotan maksbotan merged commit 185f592 into master Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants